home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / Box$Filler$AccessibleBoxFiller.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  4.8 KB  |  192 lines

  1. package javax.swing;
  2.  
  3. import java.awt.Color;
  4. import java.awt.Container;
  5. import java.awt.Cursor;
  6. import java.awt.Dimension;
  7. import java.awt.Font;
  8. import java.awt.FontMetrics;
  9. import java.awt.Point;
  10. import java.awt.Rectangle;
  11. import java.awt.event.FocusListener;
  12. import java.io.Serializable;
  13. import java.util.Locale;
  14. import javax.accessibility.Accessible;
  15. import javax.accessibility.AccessibleComponent;
  16. import javax.accessibility.AccessibleContext;
  17. import javax.accessibility.AccessibleRole;
  18. import javax.accessibility.AccessibleState;
  19. import javax.accessibility.AccessibleStateSet;
  20.  
  21. public class Box$Filler$AccessibleBoxFiller extends AccessibleContext implements Serializable, AccessibleComponent {
  22.    // $FF: synthetic field
  23.    private final Box.Filler this$0;
  24.  
  25.    protected Box$Filler$AccessibleBoxFiller(Box.Filler var1) {
  26.       this.this$0 = var1;
  27.    }
  28.  
  29.    public void addFocusListener(FocusListener var1) {
  30.       this.this$0.addFocusListener(var1);
  31.    }
  32.  
  33.    public boolean contains(Point var1) {
  34.       return this.this$0.contains(var1);
  35.    }
  36.  
  37.    public Accessible getAccessibleAt(Point var1) {
  38.       return SwingUtilities.getAccessibleAt(this.this$0, var1);
  39.    }
  40.  
  41.    public Accessible getAccessibleChild(int var1) {
  42.       return SwingUtilities.getAccessibleChild(this.this$0, var1);
  43.    }
  44.  
  45.    public int getAccessibleChildrenCount() {
  46.       return SwingUtilities.getAccessibleChildrenCount(this.this$0);
  47.    }
  48.  
  49.    public AccessibleComponent getAccessibleComponent() {
  50.       return this;
  51.    }
  52.  
  53.    public int getAccessibleIndexInParent() {
  54.       return SwingUtilities.getAccessibleIndexInParent(this.this$0);
  55.    }
  56.  
  57.    public Accessible getAccessibleParent() {
  58.       if (super.accessibleParent != null) {
  59.          return super.accessibleParent;
  60.       } else {
  61.          Container var1 = this.this$0.getParent();
  62.          return var1 instanceof Accessible ? (Accessible)var1 : null;
  63.       }
  64.    }
  65.  
  66.    public AccessibleRole getAccessibleRole() {
  67.       return AccessibleRole.FILLER;
  68.    }
  69.  
  70.    public AccessibleStateSet getAccessibleStateSet() {
  71.       return SwingUtilities.getAccessibleStateSet(this.this$0);
  72.    }
  73.  
  74.    public Color getBackground() {
  75.       return this.this$0.getBackground();
  76.    }
  77.  
  78.    public Rectangle getBounds() {
  79.       return this.this$0.getBounds();
  80.    }
  81.  
  82.    public Cursor getCursor() {
  83.       return this.this$0.getCursor();
  84.    }
  85.  
  86.    public Font getFont() {
  87.       return this.this$0.getFont();
  88.    }
  89.  
  90.    public FontMetrics getFontMetrics(Font var1) {
  91.       return this.this$0.getFontMetrics(var1);
  92.    }
  93.  
  94.    public Color getForeground() {
  95.       return this.this$0.getForeground();
  96.    }
  97.  
  98.    public Locale getLocale() {
  99.       return this.this$0.getLocale();
  100.    }
  101.  
  102.    public Point getLocation() {
  103.       return this.this$0.getLocation();
  104.    }
  105.  
  106.    public Point getLocationOnScreen() {
  107.       return this.this$0.isShowing() ? this.this$0.getLocationOnScreen() : null;
  108.    }
  109.  
  110.    public Dimension getSize() {
  111.       return this.this$0.getSize();
  112.    }
  113.  
  114.    public boolean isEnabled() {
  115.       return this.this$0.isEnabled();
  116.    }
  117.  
  118.    public boolean isFocusTraversable() {
  119.       return this.this$0.isFocusTraversable();
  120.    }
  121.  
  122.    public boolean isShowing() {
  123.       return this.this$0.isShowing();
  124.    }
  125.  
  126.    public boolean isVisible() {
  127.       return this.this$0.isVisible();
  128.    }
  129.  
  130.    public void removeFocusListener(FocusListener var1) {
  131.       this.this$0.removeFocusListener(var1);
  132.    }
  133.  
  134.    public void requestFocus() {
  135.       this.this$0.requestFocus();
  136.    }
  137.  
  138.    public void setBackground(Color var1) {
  139.       this.this$0.setBackground(var1);
  140.    }
  141.  
  142.    public void setBounds(Rectangle var1) {
  143.       this.this$0.setBounds(var1);
  144.    }
  145.  
  146.    public void setCursor(Cursor var1) {
  147.       this.this$0.setCursor(var1);
  148.    }
  149.  
  150.    public void setEnabled(boolean var1) {
  151.       boolean var2 = this.this$0.isEnabled();
  152.       this.this$0.setEnabled(var1);
  153.       if (var1 != var2 && this.this$0.accessibleContext != null) {
  154.          if (var1) {
  155.             this.this$0.accessibleContext.firePropertyChange("AccessibleState", (Object)null, AccessibleState.ENABLED);
  156.          } else {
  157.             this.this$0.accessibleContext.firePropertyChange("AccessibleState", AccessibleState.ENABLED, (Object)null);
  158.          }
  159.       }
  160.  
  161.    }
  162.  
  163.    public void setFont(Font var1) {
  164.       this.this$0.setFont(var1);
  165.    }
  166.  
  167.    public void setForeground(Color var1) {
  168.       this.this$0.setForeground(var1);
  169.    }
  170.  
  171.    public void setLocation(Point var1) {
  172.       this.this$0.setLocation(var1);
  173.    }
  174.  
  175.    public void setSize(Dimension var1) {
  176.       this.this$0.setSize(var1);
  177.    }
  178.  
  179.    public void setVisible(boolean var1) {
  180.       boolean var2 = this.this$0.isVisible();
  181.       this.this$0.setVisible(var1);
  182.       if (var1 != var2 && this.this$0.accessibleContext != null) {
  183.          if (var1) {
  184.             this.this$0.accessibleContext.firePropertyChange("AccessibleState", (Object)null, AccessibleState.VISIBLE);
  185.          } else {
  186.             this.this$0.accessibleContext.firePropertyChange("AccessibleState", AccessibleState.VISIBLE, (Object)null);
  187.          }
  188.       }
  189.  
  190.    }
  191. }
  192.